package com.bizihang.validate.core.spring.config.annotation;

import com.bizihang.validate.core.spring.ValidateCodeEndpoint;
import com.bizihang.validate.core.spring.endpoint.FrameworkEndpointHandlerMapping;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ValidateCodeEndpointsConfiguration {
    @Bean
    public ValidateCodeEndpoint validateCodeEndpoint() {
        return new ValidateCodeEndpoint();
    }

    @Bean
    public FrameworkEndpointHandlerMapping frameworkEndpointHandlerMapping() {
        return new FrameworkEndpointHandlerMapping();
    }
}
